<?php
namespace app\backend\models;

use app\backend\lib\ArDBLib;

class BookkeepingModel extends ArDBLib{

    public static function tableName(){
        return '@bookkeeping';
    }

    public function getBookKeepingAll(){
        return self::find()->join([['left join','@user','@user.user_id = @bookkeeping.user_id']])->where([['=','is_del',0]])->orderBy(' add_time DESC')->all();
    }

}